//package com.rbac.controller.test;
//
//
//import com.common.Result;
//import com.rbac.pojo.Department;
//import com.rbac.service.test.impl.DepartmentServiceImpl;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("/Man/department")
//public class DepartmentController {
//
//    @Autowired
//    private DepartmentServiceImpl departmentService;
//
//    @GetMapping("/list")
////    @Authority(name="获取部门分页信息", expression = "department:list")
//    public Result list(Integer pageNum, Integer pageSize){
//        return departmentService.getDepartmentList(pageNum,pageSize);
//    }
//    @DeleteMapping("/delete")
////    @Authority(name="删除部门信息", expression = "department:delete")
//    public Result delete(Integer id){
//        return departmentService.delete(id);
//    }
//
//    @PostMapping("/add")
////    @Authority(name="保存部门信息", expression = "department:save")
//    public Result save(@RequestBody Department department){
//        return departmentService.save(department);
//    }
//
//    @PutMapping("/update")
////    @Authority(name="修改部门信息", expression = "department:update")
//    public Result update(@RequestBody Department department){
//        System.out.println(department);
//        return departmentService.update(department);
//    }
//
//    @GetMapping("/info")
////    @Authority(name="获取部门信息", expression = "department:info")
//    public Result info(Integer id){
//        Department department = departmentService.getDepartmentById(id);
//        return Result.success(department);
//    }
//
//    @GetMapping("/listAll")
////    @Authority(name="获取全部部门信息", expression = "department:listAll")
//    public Result listAll(){
//        List<Department> department = departmentService.getDepartmentAllById();
//        return Result.success(department);
//    }
//}
